package com.demo.entity;


import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * @类名称：DepartMent @类描述：
 * @创建人：YangChao
 * @创建时间：2017年9月15日 上午11:50:07
 * @version 1.0.0
 */
@Entity
@Table(name = "CRM_DEPARTMENT")
public class DepartMent extends BaseEntity {

	private static final long serialVersionUID = 1L;
	private String name; // 部门名称
	private String departMentNo; // 部门编号
	private Employee contactEmployee; // 联系人

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDepartMentNo() {
		return departMentNo;
	}

	public void setDepartMentNo(String departMentNo) {
		this.departMentNo = departMentNo;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "contactEmployeeId")
	public Employee getContactEmployee() {
		return contactEmployee;
	}

	public void setContactEmployee(Employee contactEmployee) {
		this.contactEmployee = contactEmployee;
	}

}
